import request from '@/libs/request';

export default {
	//获取一级部门数据
	getListOneOffice: (params = {}, options = {}) => {
		return request.get('/system/listOneOffice', params, options)
	},
	//获取问题详情
	getQuestionDetail: (params = {}, options = {}) => {
		return request.get('/question/detail', params, options)
	},
	//获取问题数据
	getListQuestion: (params = {}, options = {}) => {
		return request.get('/question/listQuestion', params, options)
	},
	//获取问题资源数据
	getQuestionResourceList: (params = {}, options = {}) => {
		return request.get('/question/listQuestionResource', params, options)
	},
	//问题上报
	reportQuestion: (params = {}, options = {}) => {
		return request.post('/question/report', params, options)
	},
	//上报问题资源
	reportQuestionResource: (params = {}, options = {}) => {
		return request.post('/question/reportResource', params, options)
	},
	//问题指认部门来处理
	appointQuestion: (params = {}, options = {}) => {
		return request.post('/question/appoint', params, options)
	},
	//问题处理完成
	completeQuestion: (params = {}, options = {}) => {
		return request.post('/question/complete', params, options)
	},
	//问题审核拒绝
	rejectQuestion: (params = {}, options = {}) => {
		return request.post('/question/reject', params, options)
	},
	//获取已分配待处理问题数量的提醒
	getQuestionPendingNum: (params = {}, options = {}) => {
		return request.get('/question/pendingNum', params, options)
	}
}